<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:appcc="http://java.sun.com/jsf/composite/components"
	template="/WEB-INF/layouts/main.xhtml">
	<ui:define name="content">
		<h:form id="loginForm" prependId="false">
			<p:panelGrid columns="2">
				<h:outputLabel for="j_username" value="Username:" />
				<p:inputText id="j_username" required="true"
					value="#{loginBean.login}">
				</p:inputText>

				<h:outputLabel for="j_password" value="Password:" />
				<p:password id="j_password" required="true"
					value="#{loginBean.password}">
				</p:password>

				<h:outputText for="_spring_security_remember_me" value="Remember me" />
			

				<f:facet name="footer">
					<p:commandButton type="submit" id="login" 
						actionListener="#{loginBean.doLogin}" value="Login" />
				</f:facet>
			</p:panelGrid>
		</h:form>
	</ui:define>
</ui:composition>